package com.itheima.web.controller;

import com.itheima.vo.AnalysisSummaryVo;
import com.itheima.web.manager.AnalysisManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AnalysisController {

    @Autowired
    private AnalysisManager analysisManager;


    //查询首页概要统计信息
    @GetMapping("/dashboard/summary")
    public AnalysisSummaryVo analysisSummary(){
        return analysisManager.analysisSummary();//null.  null四则
    }
}
